| |
 |
|
|
|
|
What Is the Windows API? |
|
|
|
| |
 |
|
|
|
|
Uses of the Windows API |
|
|
|
| |
 |
|
|
|
|
Windows Components |
|
|
|
| |
 |
|
|
|
|
ANSI Versus Unicode |
|
|
|
| |
 |
|
|
|
|
Sources for Windows API Information |
|
|
|
| |
 |
|
|
|
|
Declaring API Functions to Visual Basic |
|
|
|
| |
 |
|
|
|
|
API Text Viewer Utility |
|
|
|
| |
 |
|
|
|
|
Calling API Functions |
|
|
|
| |
 |
|
|
|
|
Call by Reference Versus Call by Value |
|
|
|
| |
 |
|
|
|
|
Passing String Parameters |
|
|
|
| |
 |
|
|
|
|
The SendMessage API Function |
|
|
|
| |
 |
|
|
|
|
Finding a String in a List Box |
|
|
|
| |
 |
|
|
|
|
Tab Stops in a List Box |
|
|
|
| |
 |
|
|
|
|
Multiple Tab Stops |
|
|
|
| |
 |
|
|
|
|
Limiting Characters in a Combo Box |
|
|
|
| |
 |
|
|
|
|
Changing the List Portion of a Combo Box |
|
|
|
| |
 |
|
|
|
|
The GetDriveType Function |
|
|
|
| |
 |
|
|
|
|
Retrieving System Resources |
|
|
|
| |
 |
|
|
|
|
System Information Utility |
|
|
|
| |
 |
|
|
|
|
The About Form |
|
|
|
| |
 |
|
|
|
|
The System Information Class |
|
|
|
| |
 |
|
|
|
|
Retrieving the Operating System Version |
|
|
|
| |
 |
|
|
|
|
The OSystemGet() Method |
|
|
|
| |
 |
|
|
|
|
Memory and CPU Properties |
|
|
|
| |
 |
|
|
|
|
The GetSysInfo() Method |
|
|
|
| |
 |
|
|
|
|
The Windows Directory Properties |
|
|
|
| |
 |
|
|
|
|
The Windows Directory Information |
|
|
|
| |
 |
|
|
|
|
Summary |
|
|
|
| |
 |
|
|
|
|
Review Questions |
|
|
|
| |
 |
|
|
|
|
Exercises |
|
|
|
| |
|
|
|
|
|
29
Storing User Information |
|
|
|
| |
 |
|
|
|
|
INI Files |
|
|
|
| |
 |
|
|
|
|
GetPrivateProfileString |
|
|
|
| |
 |
|
|
|
|
WritePrivateProfileString |
|
|
|
| |
 |
|
|
|
|
Retrieving All Settings |
|
|
|
| |
 |
|
|
|
|
INI Class |
|
|
|
| |
 |
|
|
|
|
Properties of the INI Class |
|
|
|
| |
 |
|
|
|
|
Public Methods of the INI Class |
|
|
|
| |
 |
|
|
|
|
Class Initialization |
|
|
|
| |
 |
|
|
|
|
Using the INI Class to Get Data |
|
|
|
| |
 |
|
|
|
|
The KeyGet() Method in the INI Class |
|
|
|
| |
 |
|
|
|
|
Using the INI Class to Save Data |
|
|
|
| |
 |
|
|
|
|
Using the INI Class to Save Many Values |
|
|
|
| |
 |
|
|
|
|
The KeySave() Method in the INI Class |
|
|
|
| |
 |
|
|
|
|
Using the INI Class to Get a Sections Values |
|
|
|
| |
 |
|
|
|
|
The SectionGet() Method in the INI Class |
|
|
|
| |
 |
|
|
|
|
The System Registry |
|
|
|
| |
 |
|
|
|
|
Manipulating the Registry |
|
|
|
| |
 |
|
|
|
|
Retrieving Data Using API Calls |
|
|
|
| |
 |
|
|
|
|
Saving Data Using API Calls |
|
|
|
| |
 |
|
|
|
|
Built-in Visual Basic Functions |
|
|
|
| |
 |
|
|
|
|
GetSetting |
|
|
|
| |
 |
|
|
|
|
SaveSetting |
|
|
|
| |
 |
|
|
|
|
DeleteSetting |
|
|
|
| |
 |
|
|
|
|
GetAllSettings |
|
|
|
| |
 |
|
|
|
|
The Registry Class |
|
|
|
| |
 |
|
|
|
|
Properties of the Registry Class |
|
|
|
| |
 |
|
|
|
|
Public Methods of the Registry Class |
|
|
|
| |
 |
|
|
|
|
Class Initialization |
|
|
|
| |
 |
|
|
|
|
Using the Registry Class to Get Data |
|
|
|
| |